package com.wxb.lottery.util;

import java.util.Random;

public class RandomUtil {
    public static void main(String[] args) {
        System.out.println(getRandomNum(100));
    }
    public static Integer getRandomNum(Integer maxNum) {
        Random random = new Random();
        Integer randomNumber = random.nextInt(maxNum) + 1;
        return randomNumber;
    }
}
